package com.itheima.service.smsService;

import com.itheima.commons.PageResult;
import com.itheima.domain.db.sms.SmsHomeAdvertise;
import com.itheima.vo.PageBeanVo;

import java.util.List;

public interface SmsHomeAdvertiseService {

    //添加广告
    void save(SmsHomeAdvertise advertise);

    //删除广告
    void delete(List<Long> ids);

    //分页查询
    PageResult<SmsHomeAdvertise> findByPage(String endTime,String name,Integer pageNum,Integer pageSize,Integer type);


    //修改上下线状态
    void update(Long id,Integer status);

    //修改广告
    void updataById(Long id,SmsHomeAdvertise smsHomeAdvertise);

    //获取广告详情
    SmsHomeAdvertise getAdvertiseById(Long id);
}
